package com.aplink.generic.constant.type;

import com.google.android.gms.maps.GoogleMap;

public enum GoogleMapsType {
	HYBRID("hybrid", GoogleMap.MAP_TYPE_HYBRID),
	NONE("none", GoogleMap.MAP_TYPE_NONE),
	NORMAL("normal", GoogleMap.MAP_TYPE_NORMAL),
	SATELLITE("satellite", GoogleMap.MAP_TYPE_SATELLITE),
	TERRAIN("terrain", GoogleMap.MAP_TYPE_TERRAIN);

	public static GoogleMapsType get(final String key) {
		for (final GoogleMapsType googleMapsType : GoogleMapsType.values()) {
			if (googleMapsType.mKey.equalsIgnoreCase(key)) {
				return googleMapsType;
			}
		}
		return NONE;
	}

	private String mKey;

	private int mValue;

	private GoogleMapsType(final String key, final int value) {
		mKey = key;
		mValue = value;
	}

	public final int getValue() {
		return mValue;
	}

}
